<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<mesoBoard.Data.Role>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<fieldset>
    <legend><%= Html.ThemeImage("bricks.png") %> Groups</legend>
        
    <table class="form_table">
        <tr>
            <th>Group Name</th>
            <th>Total Members</th>
        </tr>
        
        <% foreach(Role r in Model){ %>
        
        <tr>
            <td><%= Html.ActionLink(r.Name, "ViewGroup", "Members", new { GroupID = r.RoleID}, r.Rank != null ? new { style= "color:"+r.Rank.Color } : null)  %></td>
            <td><%= r.InRoles.Count %></td>
        </tr>
        
        <%} %>       
    </table>
    
    <div style="margin-top: 5px;">
        <% Html.RenderPartial("Paging", ViewData["Paging"]); %>
    </div>
    
</fieldset>

</asp:Content>
